package com.jhte.scheduleJob.dao;

import com.jhte.scheduleJob.entity.QuartzLog;
import com.jhte.scheduleJob.vo.QueQuartzLogRequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description
 * @author wuchun
 * @create 2018/2/6 18:57
 */
@Mapper
@Repository
public interface QuartzLogDao {

    /**
     * 查询定时任务日志
     *
     * @param queQuartzLogRequest
     * @return
     */
    List<QuartzLog> queryQuartzLogList(QueQuartzLogRequest queQuartzLogRequest);

    /**
     * 查询定时任务日志个数
     *
     * @param queQuartzLogRequest
     * @return
     */
    int queryQuartzLogCount(QueQuartzLogRequest queQuartzLogRequest);

    /**
     * 添加任务执行日志
     *
     * @param quartzLog
     */
    int insertQuartzLog(QuartzLog quartzLog);

    /**
     * 修改任务执行日志
     *
     * @param quartzLog
     */
    int updateQuartzLog(QuartzLog quartzLog);

}
